package com.maserb.monitor.entity;

import javax.persistence.*;

/**
 * 角色与权限的关联表
 *  @author  jimmy
 */
@Entity
@Table(name = "t_s_role_function")
public class RoleFunction extends BaseIdEntity implements java.io.Serializable {
	private Function TSFunction;
	private Role role;
	private String operation;
	private String dataRule;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "functionid")
	public Function getTSFunction() {
		return this.TSFunction;
	}

	public void setTSFunction(Function TSFunction) {
		this.TSFunction = TSFunction;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "roleid")
	public Role getRole() {
		return this.role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	@Column(name = "operation", length = 100)
	public String getOperation() {
		return this.operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}
	@Column(name = "datarule", length = 100)
	public String getDataRule() {
		return dataRule;
	}

	public void setDataRule(String dataRule) {
		this.dataRule = dataRule;
	}

}